<template>
  <el-dialog v-model="state.dialogFormVisible" title="title" width="800px" destroy-on-close center>
    <el-container>
      <el-main>
        <div class="content" v-html="content"></div>
      </el-main>
    </el-container>
  </el-dialog>
</template>

<script lang="ts" setup>
import { reactive, ref } from 'vue'
import { getCompanyIntroduce } from '../../../api/setting'

const state = reactive({
  dialogFormVisible: false
})

const props = defineProps(['companyIntroduce'])

const content = ref()
const openDialog = async (index) => {
  state.dialogFormVisible = true
  props.companyIntroduce[index].set_name
  const res = await getCompanyIntroduce(props.companyIntroduce[index].set_name)
  content.value = res.data.data
}

defineExpose({
  openDialog
})



</script>
<style lang="scss" scoped>
.content {
  text-align: center;
}

:deep(.el-main) {
  min-height: 500px;
}
</style>